package stark.app.function.calculator;

import android.speech.tts.TextToSpeech;

import com.stark.tts.lib.TtSpeaker;

import stark.common.basic.sound.BaseSpeaker;

/**
 * Author：daizhongbin on 2024/11/8
 * Email：1027154338@qq.com
 * Desc:
 */
public class CalSpeaker extends BaseSpeaker {

    private TtSpeaker mTtspeaker;

    public CalSpeaker() {
        mTtspeaker = new TtSpeaker(new TtSpeaker.IInitListener() {
            @Override
            public void onInit(boolean initOk, TextToSpeech tts) {
            }
        });
    }

    @Override
    protected void doSpeak(String text) {
        mTtspeaker.simpleSpeak(text);
    }
}
